﻿<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>

<script type="text/javascript"
    src="http://maps.google.com/maps/api/js?sensor=true">
</script>

<style type="text/css">
  #map_google { height: 100%;width:100%; }
</style>
<body onload="initialize()">
	<div id="map_google">

	</div>
</body>

<script type="text/javascript">
	function initialize() {
		var lat = '<?php echo $lat?>';
		var lng = '<?php echo $lng?>';
	 
		var latlng = new google.maps.LatLng(lat, lng);
		var myOptions = {
		  zoom: 13,
		  center: latlng,
		  mapTypeId: google.maps.MapTypeId.ROADMAP
		};
		var map = new google.maps.Map(document.getElementById("map_google"),
			myOptions); 
		var marker = new google.maps.Marker({
			  position: latlng, 
			  map: map
		  });
		 
 	} 
</script>  